package com.miraeasset.www.sitemap;

public class SiteMapNode
{
	public SiteMapNode(String title, String description, String link){
		this.title = title;
		this.description = description;
		this.link = link;
	}
	public String getTitle() {
		return title;
	}
	public String getDescription() {
		return description;
	}
	public String getLink() {
		return link;
	}
	public String render(boolean isLastItem){
		String anchor = "<a href='%s'>%s</a>";
		return isLastItem ? String.format(anchor, "#", title) : String.format(anchor, link, title);  
	}
	private String title;
	private String description;
	private String link;
}